package com.rimi.bean;

public class Page {
    private  int  nowPage=1; //当前页
    private  int  pageSize=6;//每页显示多少条记录数
    private  int  totalPage; //总页数  总记录数/分页单位
    private  int  count;     //总记录数

    public int getNowPage() {
        return nowPage;
    }
    public void setNowPage(int nowPage) {
        this.nowPage = nowPage;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
    public int getTotalPage() {
        return count%pageSize==0?count/pageSize:count/pageSize+1;
    }
    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
    public int getCount() {
        return count;
    }
    public void setCount(int count) {
        this.count = count;
    }
    public Page() {
        super();
    }
    public Page(int nowPage, int totalPage, int count) {
        super();
        this.nowPage = nowPage;
        this.totalPage = totalPage;
        this.count = count;
    }
}
